<template>
  <div>
    <h3>这是列表页</h3>
    <button @click="goToDetail">跳转到详情页</button>
  </div>
</template>

<script>
export default {
  name: 'List',
  methods: {
    goToDetail() {
      this.$router.push({ path: '/detail' })
    }
  }
}
</script>